package csel.model;

public class Desk extends Terrain
{
	private static final long serialVersionUID = 6L;

	public Desk(String typeId)
	{
		super(typeId); // TODO
	}

	public boolean canEnter(MobileObject obj, BlockNotifier notifier)
	{
		// desk is similar to water. So see if can swim
		boolean ret = obj.can(MoveAbilities.Swim);
		
		if (!ret && notifier != null)
			notifier.blockedBy(this);
		
		return ret;
	}
	
	public String toString()
	{
		return "Desk";
	}
}
